<h1> List post </h1>

<table>
	<tr>
		<th>ID</th>
		<th>Title</th>
		<th>join</th>
		<th>Created</th>
		<th>Updated</th>
	<tr>
	<?php foreach	($posts as $post): ?>
	<tr>
		<?php 
			$create = new DateTime($post['Post']['CREATED']);
			$update = new DateTime($post['Post']['UPDATED']);
		?>
		<td> <?php echo $post['Post']['ID']; ?> </td>
		<td> <?php echo $post['Post']['TITLE']; ?> </td>
		<td> <?php echo $post['Chung']['chung']; ?> </td>
		<td> <?php echo date_format($create, 'd/m/Y'); ?> </td>
		<td> <?php echo date_format($update, 'd/m/Y'); ?> </td>
	</tr>
	<?php endforeach; ?>
	<?php unset($post); ?>
</table>